import * as React from 'react';
// import {withRouter} from "react-router-dom"; v5
export default class WithRouterDemo extends React.Component {
    clickHander = () => {
        console.log(this.props)
    }

    // 当前组件没有直接被路由管理 所以没有路由对象
    render() {
        return (
            <div>
                <h1>withRouter使用</h1>
                <button onClick={this.clickHander}>路由管理</button>
            </div>
        );
    };
};

// export default withRouter(WithRouterDemo)
